package edu.towson.cosc.cosc455.jdehlinger.compiler;

public class MyCompiler {

	public static String token;
	static MyLexicalAnalyzer lexer;
	static MySyntaxAnalyzer parser;
	static MySemanticAnalyzer generator;
	
	public static void main(String[] args) {
		
		token = "";
		
		// Check that there is 1 arg
		if (args.length != 1){
			System.err.println("ERROR!");
			System.exit(0);
		}
		
		// check extension 
		// initialize parse tree array?
		// other initializations?
		
		lexer = new MyLexicalAnalyzer();
		lexer.getNextToken();
		
		parser = new MySyntaxAnalyzer();
		parser.lolcode();
		
		generator = new MySemanticAnalyzer();
		// call Semantic Analyzer
		
		// write output file
		// clean up?
	}

}
